import request from '@/utils/request'

// 查询SysYjgKc列表
export function listKc(query) {
  return request({
    url: '/system/kcfb/list',
    method: 'get',
    params: query
  })
}

// 查询SysYjgKc详细
export function getKc(code) {
  return request({
    url: '/system/kcfb/' + code,
    method: 'get'
  })
}

// 新增SysYjgKc
export function addKc(data) {
  return request({
    url: '/system/kcfb',
    method: 'post',
    data: data
  })
}

// 修改SysYjgKc
export function updateKc(data) {
  return request({
    url: '/system/kcfb',
    method: 'put',
    data: data
  })
}

// 删除SysYjgKc
export function delKc(code) {
  return request({
    url: '/system/kcfb/' + code,
    method: 'delete'
  })
}
